import helloWorld from "./hello-world";
// import _ from 'lodash'
import './async-module.js'
import './assets/style.css'
helloWorld()
// console.log(_.join(['index', 'module', 'loaded!'], '  '))

const button = document.createElement('button')
button.textContent = '点击执行加法运算'
button.addEventListener('click', () => {
    // 魔法注视，math为名字
    // import(/*webpackChunkName:'math',webpackPrefetch:true*/'./math.js').then(({ add }) => {
    import(/*webpackChunkName:'math',webpackPreload:true*/'./math.js').then(({ add }) => {
        console.log(add(1, 2));
    })
})
document.body.appendChild(button)